package com.qsl.rpc.server;

import com.qsl.rpc.entity.User;
import com.qsl.rpc.service.IUserService;

/**
 * @author 青石路
 * @date 2021/1/16 19:51
 */
public class UserServiceImpl implements IUserService {

    public User getUserById(Integer id) {
        // 实际应用中，应该是从数据库查
        return new User(id, "青石路");
    }

    public User getUserByName(String name) {
        return null;
    }
}
